<?php
header('Content-type:text/html;charset=utf-8');
header('Content-type: application/json');
header('Access-Control-Allow-Origin:*');
include_once './dbConfig.php';
include_once './public.php';
if ($_GET) {
    if (isset($_GET['getType']) && ($_GET['getType']) == 'pay') {
        $username = $_GET['user'];
        $selectSql = 'SELECT p.id,p.price,s.username,s.id AS shop_id FROM lgz_product AS p
                      JOIN lgz_shop_car AS s ON s.pro_id = p.id
                      WHERE s.status=1 AND s.checked=1 AND s.username="'.$username.'"';
        $data = selectEvent($selectSql);
        reponseEvent($data);
    }
}